package behavioral.responsibility;

/**
 * @Description: 研究院院长
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class Leader extends Handler {
    public Boolean check(String reason, int days) {
        if (days <= 7 && "禽流感需要隔离".equals(reason)) {
            System.out.println(String.format("研究院院长处理【%s】：赶紧拖出去！", reason));
            return true;
        }
        System.out.println(String.format("研究院院长处理【%s】：不同意，别乱请假", reason));
        return false;
    }
}
